	//**				**//
//** Entry # 2 Week 2 Begin **//
	//**				**//
// Includes Buffer.c

#ifndef _BUFFER_
#define _BUFFER_
#include "Extra Headers.h"

#define CHUNK_SIZE 128

//A buffer is a list in a this form, char[?][128]
// The ? is constantly expanding and decreasing as is needed
//A parallel array is held that holds what color each character is.
typedef struct _BUFFER
{
	char ** Data;
	char ** Color;
	int Size;
	int AmountChunks;
} BUFFER;

struct _BUFFER * Buffer_Init();

void Buffer_Array_Init(struct _BUFFER * B,int Size);

char ** Buffer_Data_Init(int Size);

char ** Buffer_Color_Init(int Size);

void Buffer_Add_Char(struct _BUFFER * B,char a_C,char a_Color);

void Buffer_Add_CSZ(struct _BUFFER * B,char * a_CSZ,char a_Color);

void Buffer_Clear(struct _BUFFER * B);

void Buffer_Backspace(struct _BUFFER * B);

struct _BUFFER * Buffer_Create(int A_AmountChars);

char Buffer_Get_Char(struct _BUFFER * B,int Itt,int Chunk);

void Buffer_Print_Whole_Buffer(struct _BUFFER * B,int x,int y);

	//**				**//
//** Entry # 2 Week 2 End **//
	//**				**//
#endif